package com.java.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;

/**
 * @author xin.ding
 * @date 2020/11/11 10:21
 */
public class StreamTest {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>(16);
        list.add("1");
        list.add("2");
        list.add("3");
        list.forEach(s -> System.out.println(s));
    }
}
